package com.lhf.aicloud.utils;

import cn.hutool.crypto.SecureUtil;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author : lhf
 * @date : Created in 2024/07/28
 */
public class NameUtil {

    /**
     * 获取验证码的文件名
     */
    public static String getCaptchaName(HttpServletRequest request) {
        return "captcha-" + SecureUtil.md5(request.getRemoteAddr());
    }
}
